﻿/**
* File: XmglxmxxzbAddModel.cs
* Author: 汪杰
* Create Time:2025/3/28 9:14:02
* Email:15200358008@139.com
* 代码由TMCodeGenerator自动生成
**/
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using JSLCloud.Models;
using JSLCloud.Attributes;
using JSLCloud.DBModel;

namespace JSLCloud.App.Models.Xmglxmxxzb
{
    /// <summary>
    /// xm_gl_xmxx_zb Add Model
    /// </summary>
    [UseAutoMapper(typeof(XmglxmxxzbDbModel))]
    public class XmglxmxxzbAddModel
    {
        /// <summary>
        /// ID
        /// </summary>
        [Required]
        public new int ID { get; set; }
        /// <summary>
        /// 创建人ID
        /// </summary>
        public int? Createid { get; set; }
        /// <summary>
        /// 创建人姓名
        /// </summary>
        [StringLength(maximumLength:50)]
        public string Createname { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? Createtime { get; set; }
        /// <summary>
        /// 删除标识 0未删除 1已删除
        /// </summary>
        [Required]
        public int Deleteflag { get; set; }
        /// <summary>
        /// 客户ID
        /// </summary>
        [Required]
        public int Khid { get; set; }
        /// <summary>
        /// 体系ID
        /// </summary>
        [Required]
        public int Txid { get; set; }
        /// <summary>
        /// 合同编号
        /// </summary>
        [StringLength(maximumLength:50)]
        public string Erpbh { get; set; }
        /// <summary>
        /// 市县区
        /// </summary>
        [StringLength(maximumLength:100)]
        public string Sxq { get; set; }
        /// <summary>
        /// 审核类型  二阶段 、监一、监二、扩大、再认证、证书变更
        /// </summary>
        [Required]
        [StringLength(maximumLength:100)]
        public string Shlx { get; set; }
        /// <summary>
        /// 体系人数
        /// </summary>
        [Required]
        public int Txrs { get; set; }
        /// <summary>
        /// 认证范围
        /// </summary>
        [Required]
        [StringLength(maximumLength:2000)]
        public string Rzfw { get; set; }
        /// <summary>
        /// 初审金额
        /// </summary>
        [Required]
        [RegularExpression(pattern: "^(-)?\\d{1,16}(\\.\\d{1,2})?$", ErrorMessage = "整数位须小于等于16位，小数位须小于等于2位")]
        public decimal Csje { get; set; }
        /// <summary>
        /// 监审金额
        /// </summary>
        [Required]
        [RegularExpression(pattern: "^(-)?\\d{1,16}(\\.\\d{1,2})?$", ErrorMessage = "整数位须小于等于16位，小数位须小于等于2位")]
        public decimal Jsje { get; set; }
        /// <summary>
        /// 合同金额
        /// </summary>
        [Required]
        [RegularExpression(pattern: "^(-)?\\d{1,16}(\\.\\d{1,2})?$", ErrorMessage = "整数位须小于等于16位，小数位须小于等于2位")]
        public decimal Htje { get; set; }
        /// <summary>
        /// 合同签单日期
        /// </summary>
        [Required]
        public DateTime Htqdrq { get; set; }
        /// <summary>
        /// 审核人
        /// </summary>
        [StringLength(maximumLength:20)]
        public string Shr { get; set; }
        /// <summary>
        /// 审核时间
        /// </summary>
        public DateTime? Shsj { get; set; }
        /// <summary>
        /// 审核状态
        /// </summary>
        [StringLength(maximumLength:1)]
        public string Shzt { get; set; }
        /// <summary>
        /// 排程状态 N未排完 Y已排完
        /// </summary>
        [StringLength(maximumLength:1)]
        public string Pczt { get; set; }
        /// <summary>
        /// 排程审核人
        /// </summary>
        [StringLength(maximumLength:20)]
        public string Pcshr { get; set; }
        /// <summary>
        /// 排程审核时间
        /// </summary>
        public DateTime? Pcshsj { get; set; }
        /// <summary>
        /// 排程审核状态 N 未审核 Y已审核
        /// </summary>
        [StringLength(maximumLength:1)]
        public string Pcshzt { get; set; }
        /// <summary>
        /// 备注说明
        /// </summary>
        [StringLength(maximumLength:500)]
        public string Bz { get; set; }
        /// <summary>
        /// 项目状态
        /// </summary>
        [StringLength(maximumLength:1)]
        public string Xmzt { get; set; }
        /// <summary>
        /// 项目状态确认人
        /// </summary>
        [StringLength(maximumLength:50)]
        public string Xmztqrr { get; set; }
        /// <summary>
        /// 项目状态确认时间
        /// </summary>
        public DateTime? Xmztqrsj { get; set; }
        /// <summary>
        /// 收款状态
        /// </summary>
        [StringLength(maximumLength:1)]
        public string Skzt { get; set; }
        /// <summary>
        /// 收款确认人
        /// </summary>
        [StringLength(maximumLength:50)]
        public string Skqrr { get; set; }
        /// <summary>
        /// 收款确认时间
        /// </summary>
        public DateTime? Skqrsj { get; set; }
        /// <summary>
        /// 开票状态
        /// </summary>
        [StringLength(maximumLength:1)]
        public string Kpzt { get; set; }
        /// <summary>
        /// 开票确认人
        /// </summary>
        [StringLength(maximumLength:50)]
        public string Kpqrr { get; set; }
        /// <summary>
        /// 开票确认时间
        /// </summary>
        public DateTime? Kpqrsj { get; set; }
        /// <summary>
        /// 是否多场所
        /// </summary>
        [StringLength(maximumLength:10)]
        public string Sfdcs { get; set; }
        /// <summary>
        /// 多场所类别
        /// </summary>
        [StringLength(maximumLength:10)]
        public string Dcslb { get; set; }
        /// <summary>
        /// 证书类别
        /// </summary>
        [StringLength(maximumLength:10)]
        public string Zslb { get; set; }
        /// <summary>
        /// 证书号
        /// </summary>
        [StringLength(maximumLength:200)]
        public string Zsh { get; set; }
        /// <summary>
        /// 专业代码
        /// </summary>
        [StringLength(maximumLength:200)]
        public string Zydm { get; set; }
        /// <summary>
        /// 证书开始日期
        /// </summary>
        public DateTime? Zsksrq { get; set; }
        /// <summary>
        /// 证书结束日期
        /// </summary>
        public DateTime? Zsjsrq { get; set; }
        /// <summary>
        /// 合同类型
        /// </summary>
        [StringLength(maximumLength:50)]
        public string Htlx { get; set; }
        /// <summary>
        /// 合同地址
        /// </summary>
        [StringLength(maximumLength:500)]
        public string Htdz { get; set; }
        /// <summary>
        /// 审核序号 ，0 初认证、扩大、证书变更、再认证 1监督一 2 监督二
        /// </summary>
        public int? Shxh { get; set; }
        /// <summary>
        /// 主记录ID
        /// </summary>
        [Required]
        public int Pid { get; set; }
                
    }
}
